package com.company;

/**
 * @ProjectName: 复习java
 * @Package: com.company
 * @ClassName: Singleton
 * @Author: wym
 * @Date: 2020/7/31 17:17
 * @Version: 1.0
 */
public class Singleton {

    private Singleton(){
        System.out.println("调用了我");
    }

    private static final Singleton singleton=new Singleton();

    public static Singleton getSingleton() {
        return singleton;
    }

}
